package com.itheima.admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheim.client.vo.SetmealVo;
import com.itheima.admin.pojo.Setmeal;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @Author longbosheng
 * @Date 2022/6/15 15:17
 * @PackageName:com.itheima.mapper
 * @ClassName: SetmealMapper
 * @Description: TODO
 * @Version 1.0
 */
@Mapper
public interface SetmealMapper extends BaseMapper<Setmeal> {
    /**
     * 套餐分页查询
     * @param name
     * @param offset
     * @param pageSize
     * @return
     */
    List<Setmeal> selectSetmeal(String name, int offset, int pageSize);

    /**
     * 套餐查询总数
     * @param name
     * @return
     */
    int selectCount(String name);


}
